		  <span id="toggle_<%=@question.id%>">
			 <table cellpadding="0" cellspacing="0" border="0" class="tblRepeter">
				<tr>
					<td>
			  		<%image = Image.find(@question.image_id)%>
			  		<div class="imageRept"><%= image_tag image.photo.url(:original), :size => "200x80", :id=>"preview-photo" %></div>
			  		</td>
				</tr>
			</table>
			<div class="clear"></div>
						
		  <%checkAttended = Evaluation.where(["question_id = ? and categoryexam_id = ? and categoryuser_id = ? and has_attended = ? and attempt = ?", @question.id,@categoryExam,@categoryUser,true,@attempt])%>
		  <%unless checkAttended.empty?%>
 
		     <table class="answer_name" id="toggle_<%=@question.id%>">
			 	<tr><th></th></tr>
			 	<tr>
			 	 <td>
			 	  <%= hidden_field_tag "question_type_id", @question.question_type_id%>	
	              <%= hidden_field_tag "question_id", @question.id%>

				  <% answers = Answer.find_all_by_question_id(@question.id)%>
				   <%answers.each do|answer|%>
				   <%checkAttended_1 = Evaluation.find_by_question_id_and_answer_id_and_categoryexam_id_and_categoryuser_id_and_attempt(@question.id,answer.id,@categoryExam,@categoryUser,@attempt) %>
				        <span title="<%=answer.name%>"><%= text_field_tag "answer_name[]",truncate(answer.name,:length=>35), :style=>"width:200px; height:19px; border:#d1d1d1 1px solid; background:#cfcfcf", :readonly => true%></span>
						<%= check_box_tag "answer_id[]", answer.id, checkAttended_1 != nil ? true : false, {:class=>"validate[minCheckbox[1]] checkbox publish", :style=>"margin-left: 10px; margin-right: 5px;",:disabled => false} %><br><br>
					    <%= hidden_field_tag "evaluation_id[]", checkAttended_1.id if checkAttended_1 != nil %>
				   <%end%>				
			 	 </td>
				</tr>
			 </table>
		   <%else%>
		      <table class="answer_name" id="toggle_<%=@question.id%>">
			 	<tr><th></th></tr>
			 	<tr>
			 	 <td>
			 	  <%= hidden_field_tag "question_type_id", @question.question_type_id%>	
	              <%= hidden_field_tag "question_id", @question.id%>	
				  <% answers = Answer.find_all_by_question_id(@question.id)%>
				   <%answers.each do|answer|%>
				        <span title="<%=answer.name%>"><%= text_field_tag "answer_name[]",truncate(answer.name,:length=>35), :style=>"width:200px; height:19px; border:#d1d1d1 1px solid; background:#cfcfcf", :readonly => true%></span>
						<%= check_box_tag "answer_id[]", answer.id,false, {:class=>"validate[minCheckbox[1]] checkbox publish", :style=>"margin-left: 10px; margin-right: 5px;"} %><br><br>
					 
				   <%end%>				
			 	 </td>
				</tr>
			  </table>   
		   <%end%>
			 </span>